﻿@if (Request.IsAuthenticated) {
        <text>
            Hello, 
@Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
            @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
                @Html.AntiForgeryToken()
                <div class="button" style="width:50px;">
                    <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
                </div>
            }
        </text>
} else
{
<a href="@Url.Action("Login", "Account")">
        <img src="/ImageEditting.axd?W=100&H=80&U=~/Images/LoginRed.jpg" width="100px" height="80px" alt="log in" title="log in"/>
</a>

}
